package com.core.family.admin.service.Impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.core.family.biz.yizhao.domain.po.YzWallet;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;
import java.util.List;

import com.core.family.admin.mapper.PlatPaymentMapper;
import com.core.family.admin.domain.po.PlatPayment;
import com.core.family.admin.service.PlatPaymentService;
import com.core.common.gen.BaseServiceImpl;



/**
 * @author honglei
 * @version 1.0
 * @time: 2023-7-13 15:03:14
 * @Description 服务实现层 支付流水-对接支付工具
 */
@Slf4j
@Service
public class PlatPaymentServiceImpl extends BaseServiceImpl<PlatPaymentMapper,PlatPayment> implements PlatPaymentService{


    @Override
    public PlatPayment getByfinanceId(Integer id) {
        LambdaQueryWrapper<PlatPayment> wrapper=Wrappers.lambdaQuery();
        wrapper.eq(PlatPayment::getFinanceId,id);
        return this.baseMapper.selectOne(wrapper);
    }
}

